import server from '../server/http'

// 请求首页banner数据
// const getBanners = async function() {
//    var {data} = await server.get('/small4/banner/list')
//    return Promise.resolve(data.data)
// }
// const getBanners = async function(params) {
//     var data  = await server({
//         url:"/small4/user/m/login?deviceId=007&deviceName=monkey",
//         method:"post",
//         params
//     });
//     // console.log(data);
//     return Promise.resolve(data);
// };
// 传参时候用

const getBanners = async function(params) {
    var data  = await server({
        url:"/small4/user/m/login?deviceId=007&deviceName=monkey",
        method:"post",
        params
    });
    // console.log(data);
    return Promise.resolve(data);
};


export {
    getBanners
}